<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE8;requiresActiveX=true"/>
<title>팝업</title>
<style>
</style>
<script>
var data = opener.mySheet.GetSheetHtml();

//IE8 이하 스타일
document.styleSheets[0].cssText = data.style;

//IE9 이상, 크롬등 스타일
//var styleElement = document.createElement("style");
//styleElement.type = "text/css";
//styleElement.innerHTML = data.style;

function init() {
	document.getElementById("sheet").outerHTML = data.body;
}

function prt() {
	window.print();
}
</script>
</head>
<body onload="init()">
	<input type="button" value="출력" onclick="prt()"><br>
	<h2>ibsheet 출력 팝업</h2>
	<div id="sheet"></div>
</body>
</html>